from django.urls import path
from . import views
urlpatterns = [
    path('login/',views.Login.as_view()),
    path('get/code/',views.GetCode.as_view()),
    path('total_count/',views.UserCount.as_view()),
    path('day_increment/',views.Increment.as_view()),
    path('day_live/',views.Live.as_view()),
    path('statistical/month_increment/',views.MonthIncrement.as_view()),
    path('goods_day_views/',views.GoodsDayViews.as_view()),
    path('all/',views.UserAll.as_view()),
    path('add/user/', views.AddUser.as_view()),
    path('users/<str:edit_id>/', views.DelUser.as_view()),
    path('user/<int:id>/', views.PutUser.as_view()),
    path('getone/',views.GetOne.as_view()),

    path('get_type/',views.GetType.as_view()),
    path('add_perm/',views.AddPerm.as_view()),
    path('get_prom/',views.GetProm.as_view()),
    path('permission/<int:id>/',views.OneProm.as_view()),

    path('get_group/',views.GetGroup.as_view()),
    path('per_list/',views.AllPerm.as_view()),
    path('user_list/',views.AllUser.as_view()),
    path('group_list/',views.AllGroup.as_view()),
    path('add_group/',views.AddGroup.as_view()),
    path('groups/<int:id>/',views.OneGroup.as_view()),
    path('add_admin/',views.AdminView.as_view()),
    path('user_permission/<int:id>/',views.AdminInfo.as_view()),
]